package com.tiecode.plugin.pvz.action;

import com.tiecode.develop.component.api.multiple.CreateWindowAction;
import com.tiecode.develop.component.api.multiple.Window;
import com.tiecode.plugin.action.page.code.CodeBodyPageAction;
import com.tiecode.plugin.pvz.widget.PVZView;

import java.net.URI;

public class PVZCodeBodyAction extends CodeBodyPageAction {
    @Override
    public void onCreate() {
        registerSchemeAction("pvz", new CreateWindowAction() {
            @Override
            public Window create(URI uri) {
                PVZView view = new PVZView(getActivity());
                return view;
            }
        });
    }
}
